package cn.fz.jpademo01.config;

import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * Spring Data JPA Bean配置
 * 启用Jpa，扫描指定包下的Repository类和指定包下的实体类
 */
@Configuration
@EnableJpaRepositories(basePackages = "cn.fz.jpademo01.repo")
@EntityScan(basePackages = "cn.fz.jpademo01.domain.entity")
public class JpaConfig {
}
